package cn.kimming.rpc.demo.ui.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class TreeDataVO implements Serializable {
    private String label;
    private List<TreeDataVO> children = new ArrayList<>();

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<TreeDataVO> getChildren() {
        return children;
    }

    public void setChildren(List<TreeDataVO> children) {
        this.children = children;
    }

    public void addChild(TreeDataVO child) {
        children.add(child);
    }

    public TreeDataVO(String label) {
        this.label = label;
    }
}
